<%@ page language="java" contentType="text/html; charset=UTF-8" 
    pageEncoding="UTF-8"%> 
<%@ taglib prefix="s" uri="/struts-tags" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<title><s:text name="UI-00001"></s:text></title> 
</head> 
<body> 
<script type="text/javascript"> 
function langSelecter_onChanged() { 
    document.getElementById("langForm").submit(); 
} 
</script> 
<!-- 将HTTP Session中的"I18N_LOCALE" 属性值设置成SESSION_LOCALE --> 
<s:set name="SESSION_LOCALE" value="#session['WW_TRANS_I18N_LOCALE']"/> 
<!-- 使用lee.Locales创建locales实例 --> 
<s:bean id="locales" name="com.bbs.i18n.I18NLocales"> 
    <!-- 为locales实例传入current参数值 --> 
    <s:param name="current" value="#SESSION_LOCALE == null ? locale : #SESSION_LOCALE"/> 
</s:bean> 
<form action="<s:url/>" id="langForm" style="background-color:#bbbbbb; padding-top: 4px; padding-bottom: 4px;"> 
    <s:text name="label.language"/> 
    <s:select label="Language" list="#locales.locales"  
              listKey="value" listValue="key"  
              value="#SESSION_LOCALE == null ? locale : #SESSION_LOCALE"  
              name="request_locale" id="langSelecter" onchange="langSelecter_onChanged()" /> 
             <%--  <s:property value="%{getText('UI-00001')}"/> --%>
</form> 
</body> 
</html> 